/*
 This file is part of ParagliderDesk.
 Copyright (C) 2009 Benjamin Loulier 
 
 ParagliderDeck is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.
 
 ParagliderDesk is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with ParagliderDesk.  If not, see <http://www.gnu.org/licenses/>.
 
 File: Leonardo.h
 
 Abstract: Class made to use leonardo livetracking system.
 
 Version: 0.1
 
 TODO LIST :
 -Add a view for tracking
 */

#import <Foundation/Foundation.h>
#import "CLController.h"

@class Location;

@interface Leonardo : NSObject <CLControllerDelegate>
{
	NSString *server;
	int leolive;
	/*Start of the track*/
	//version of the software
	float v;
	//user id
	int uid;
	//session id
	int sid;
	//Packet id
	int pid;
	//Name of the client
	NSString *client;
	NSString *user;
	NSString *pass;
	//Version of the client
	NSString *version;
	//The interval in secs that we will be sending gps points
	int trk1;
	//Type of the glider
	int vtype;
	NSString *phone;
	NSString *gps;
	NSString *vname;
	/*End of the track*/
	//status of the pilot
	int prid;
}

- (void)newLocationUpdate;
- (void)startSession;
- (void)generateSID;
- (void)startTracking;
- (void)stopTracking;

+ (BOOL)started;
+ (Leonardo *)sharedInstance;

@end
